﻿using SqlSugar;

namespace Model.Entity
{
    [SugarTable("user")]
    public class UserEntity : BaseEntity
    {
        public string UserName { get; set; }
        public string UserPassword { get; set; }
        [SugarColumn(OldColumnName = "Role", ColumnDataType = "int")]
        public int RoleId { get; set; }

        [Navigate(NavigateType.OneToOne, nameof(RoleId))]
        public RoleEntity RoleInfo { get; set; }
    }
}
